<script setup lang="ts">
    import {withDefaults,defineProps} from 'vue'
// 接收父组件传参，带默认值
const props = withDefaults(defineProps<{
    title?: string,
}>(), {
    title:'肝素钠总数据'
});

</script>

<template>
    <div class="titleCard">
        <img class="titleBg" src="@/assets/img/titleBg.png" alt="" >
        <div class="title">{{title}}</div>
    </div>
</template>

<style scoped lang="scss">
    .titleCard{
        width: 100%;
        position: relative;
        .titleBg{
            width: 100%;
        }
        .title{
            position: absolute;
            left: 4%;
            bottom: 30%;
            font-size: 17px;
            color: #FFFFFF;
        }
    }
</style>
